package com.xbongbong.paas.elasticsearch.pojo;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * es查询结果pojo
 * @author zcp
 * @version v1.0
 * @date 2019/2/22 9:22
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ElasticFindPojo implements Serializable {
    private static final long serialVersionUID = -6901731122436372972L;

    /**
     * 查询结果总数
     */
    private Long total;
    /**
     * 游标id
     */
    private String scrollId;
    /**
     * 结果集合
     */
    List<JSONObject> hits;
}
